package czx.wt.common.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.MethodValidationPostProcessor;

/**
 * @Author: ChenZhiXiang
 * @Date: 2019/6/18 21:30
 * @Description: 将MethodValidationPostProcessor 注入到Spring容器中，是方法参数校验时需要注入的bean
 */
@Configuration
public class ParmValidatorBeanConfig {

    @Bean
    public MethodValidationPostProcessor methodValidationPostProcessor() {
        return new MethodValidationPostProcessor();
    }

}
